#ifndef QNETPIXMAP_H
#define QNETPIXMAP_H

#include <qobject.h>
#include <qpixmap.h>
#include <qapplication.h>
#include <qimage.h>
#include <qhttp.h>
#include <qurl.h>
#include <qbuffer.h>

/**
	@author Grant French <grant@e4education.co.uk>
*/
class QNetPixmap : public QObject
{
Q_OBJECT
public slots:
void httpFinished(int reqId, bool error);

public:
    bool processingDownload;
    QHttp *http;
    QByteArray bytes;
    QBuffer *buff;
    QImage image;
    int iRequest;
    bool errorFlag;


    QNetPixmap(const QString &image_url);

    ~QNetPixmap();

};

#endif
